package com.zisu.secs.secs.test;

import com.zisu.secs.secs.hsmsss.HsmsSsMessageReceiveListener;

import java.util.Collection;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2020/10/16 9:16
 */
public class CXListener1 {
    private static final Collection<CXListener> listeners = new CopyOnWriteArrayList<>();


    public boolean ad(CXListener cxListener){
        return listeners.add(cxListener);
    }

    public static void main(String[] args) {
        listeners.forEach(s->{
            s.is("1");
        });
    }
}
